<!DOCTYPE html>

<head>
    <title>hasclass类名过滤</title>
    <meta charset="UTF-8">
    <script src="../jQuery-3.6.3.min.js"></script>
    <script>
        $(function () {
$("div").text();
           
        })
    </script>
</head>

<body>
  <div><i>a</i></div>
</body>

</html>